﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using NiSis.Entities;
using NiSis.Data;

#endregion

namespace NiSis.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="SshTipologiaSocietaProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class SshTipologiaSocietaProviderBaseCore : EntityProviderBase<NiSis.Entities.SshTipologiaSocieta, NiSis.Entities.SshTipologiaSocietaKey>
	{		
		#region Get from Many To Many Relationship Functions
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, NiSis.Entities.SshTipologiaSocietaKey key)
		{
			return Delete(transactionManager, key.IdTipologiaSocieta);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="_idTipologiaSocieta">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int32 _idTipologiaSocieta)
		{
			return Delete(null, _idTipologiaSocieta);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_idTipologiaSocieta">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int32 _idTipologiaSocieta);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override NiSis.Entities.SshTipologiaSocieta Get(TransactionManager transactionManager, NiSis.Entities.SshTipologiaSocietaKey key, int start, int pageLength)
		{
			return GetByIdTipologiaSocieta(transactionManager, key.IdTipologiaSocieta, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_Tipologia_Societa index.
		/// </summary>
		/// <param name="_idTipologiaSocieta"></param>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByIdTipologiaSocieta(System.Int32 _idTipologiaSocieta)
		{
			int count = -1;
			return GetByIdTipologiaSocieta(null,_idTipologiaSocieta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Tipologia_Societa index.
		/// </summary>
		/// <param name="_idTipologiaSocieta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByIdTipologiaSocieta(System.Int32 _idTipologiaSocieta, int start, int pageLength)
		{
			int count = -1;
			return GetByIdTipologiaSocieta(null, _idTipologiaSocieta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Tipologia_Societa index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_idTipologiaSocieta"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByIdTipologiaSocieta(TransactionManager transactionManager, System.Int32 _idTipologiaSocieta)
		{
			int count = -1;
			return GetByIdTipologiaSocieta(transactionManager, _idTipologiaSocieta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Tipologia_Societa index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_idTipologiaSocieta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByIdTipologiaSocieta(TransactionManager transactionManager, System.Int32 _idTipologiaSocieta, int start, int pageLength)
		{
			int count = -1;
			return GetByIdTipologiaSocieta(transactionManager, _idTipologiaSocieta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Tipologia_Societa index.
		/// </summary>
		/// <param name="_idTipologiaSocieta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByIdTipologiaSocieta(System.Int32 _idTipologiaSocieta, int start, int pageLength, out int count)
		{
			return GetByIdTipologiaSocieta(null, _idTipologiaSocieta, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Tipologia_Societa index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_idTipologiaSocieta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public abstract NiSis.Entities.SshTipologiaSocieta GetByIdTipologiaSocieta(TransactionManager transactionManager, System.Int32 _idTipologiaSocieta, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_Tipologia_Societa index.
		/// </summary>
		/// <param name="_dscTipologiaSocieta"></param>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByDscTipologiaSocieta(System.String _dscTipologiaSocieta)
		{
			int count = -1;
			return GetByDscTipologiaSocieta(null,_dscTipologiaSocieta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_Tipologia_Societa index.
		/// </summary>
		/// <param name="_dscTipologiaSocieta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByDscTipologiaSocieta(System.String _dscTipologiaSocieta, int start, int pageLength)
		{
			int count = -1;
			return GetByDscTipologiaSocieta(null, _dscTipologiaSocieta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_Tipologia_Societa index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_dscTipologiaSocieta"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByDscTipologiaSocieta(TransactionManager transactionManager, System.String _dscTipologiaSocieta)
		{
			int count = -1;
			return GetByDscTipologiaSocieta(transactionManager, _dscTipologiaSocieta, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_Tipologia_Societa index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_dscTipologiaSocieta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByDscTipologiaSocieta(TransactionManager transactionManager, System.String _dscTipologiaSocieta, int start, int pageLength)
		{
			int count = -1;
			return GetByDscTipologiaSocieta(transactionManager, _dscTipologiaSocieta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_Tipologia_Societa index.
		/// </summary>
		/// <param name="_dscTipologiaSocieta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public NiSis.Entities.SshTipologiaSocieta GetByDscTipologiaSocieta(System.String _dscTipologiaSocieta, int start, int pageLength, out int count)
		{
			return GetByDscTipologiaSocieta(null, _dscTipologiaSocieta, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_Tipologia_Societa index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_dscTipologiaSocieta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NiSis.Entities.SshTipologiaSocieta"/> class.</returns>
		public abstract NiSis.Entities.SshTipologiaSocieta GetByDscTipologiaSocieta(TransactionManager transactionManager, System.String _dscTipologiaSocieta, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#region UtenzeGasStoricoUpdateAll 
		
		/// <summary>
		///	This method wrap the 'UtenzeGasStoricoUpdateAll' stored procedure. 
		/// </summary>
		/// <param name="idBatch"> A <c>System.Int32?</c> instance.</param>
		/// <param name="idState"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void UtenzeGasStoricoUpdateAll(System.Int32? idBatch, System.Int32? idState)
		{
			 UtenzeGasStoricoUpdateAll(null, 0, int.MaxValue , idBatch, idState);
		}
		
		/// <summary>
		///	This method wrap the 'UtenzeGasStoricoUpdateAll' stored procedure. 
		/// </summary>
		/// <param name="idBatch"> A <c>System.Int32?</c> instance.</param>
		/// <param name="idState"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void UtenzeGasStoricoUpdateAll(int start, int pageLength, System.Int32? idBatch, System.Int32? idState)
		{
			 UtenzeGasStoricoUpdateAll(null, start, pageLength , idBatch, idState);
		}
				
		/// <summary>
		///	This method wrap the 'UtenzeGasStoricoUpdateAll' stored procedure. 
		/// </summary>
		/// <param name="idBatch"> A <c>System.Int32?</c> instance.</param>
		/// <param name="idState"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void UtenzeGasStoricoUpdateAll(TransactionManager transactionManager, System.Int32? idBatch, System.Int32? idState)
		{
			 UtenzeGasStoricoUpdateAll(transactionManager, 0, int.MaxValue , idBatch, idState);
		}
		
		/// <summary>
		///	This method wrap the 'UtenzeGasStoricoUpdateAll' stored procedure. 
		/// </summary>
		/// <param name="idBatch"> A <c>System.Int32?</c> instance.</param>
		/// <param name="idState"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void UtenzeGasStoricoUpdateAll(TransactionManager transactionManager, int start, int pageLength , System.Int32? idBatch, System.Int32? idState);
		
		#endregion
		
		#region CleanUpHistory 
		
		/// <summary>
		///	This method wrap the 'CleanUpHistory' stored procedure. 
		/// </summary>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void CleanUpHistory(System.String cdMese)
		{
			 CleanUpHistory(null, 0, int.MaxValue , cdMese);
		}
		
		/// <summary>
		///	This method wrap the 'CleanUpHistory' stored procedure. 
		/// </summary>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void CleanUpHistory(int start, int pageLength, System.String cdMese)
		{
			 CleanUpHistory(null, start, pageLength , cdMese);
		}
				
		/// <summary>
		///	This method wrap the 'CleanUpHistory' stored procedure. 
		/// </summary>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void CleanUpHistory(TransactionManager transactionManager, System.String cdMese)
		{
			 CleanUpHistory(transactionManager, 0, int.MaxValue , cdMese);
		}
		
		/// <summary>
		///	This method wrap the 'CleanUpHistory' stored procedure. 
		/// </summary>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void CleanUpHistory(TransactionManager transactionManager, int start, int pageLength , System.String cdMese);
		
		#endregion
		
		#region GetUtenze 
		
		/// <summary>
		///	This method wrap the 'GetUtenze' stored procedure. 
		/// </summary>
		/// <param name="cdPool"> A <c>System.String</c> instance.</param>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="cdTraderPrec"> A <c>System.String</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public DataSet GetUtenze(System.String cdPool, System.String cdMese, System.String cdTraderPrec)
		{
			return GetUtenze(null, 0, int.MaxValue , cdPool, cdMese, cdTraderPrec);
		}
		
		/// <summary>
		///	This method wrap the 'GetUtenze' stored procedure. 
		/// </summary>
		/// <param name="cdPool"> A <c>System.String</c> instance.</param>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="cdTraderPrec"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public DataSet GetUtenze(int start, int pageLength, System.String cdPool, System.String cdMese, System.String cdTraderPrec)
		{
			return GetUtenze(null, start, pageLength , cdPool, cdMese, cdTraderPrec);
		}
				
		/// <summary>
		///	This method wrap the 'GetUtenze' stored procedure. 
		/// </summary>
		/// <param name="cdPool"> A <c>System.String</c> instance.</param>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="cdTraderPrec"> A <c>System.String</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public DataSet GetUtenze(TransactionManager transactionManager, System.String cdPool, System.String cdMese, System.String cdTraderPrec)
		{
			return GetUtenze(transactionManager, 0, int.MaxValue , cdPool, cdMese, cdTraderPrec);
		}
		
		/// <summary>
		///	This method wrap the 'GetUtenze' stored procedure. 
		/// </summary>
		/// <param name="cdPool"> A <c>System.String</c> instance.</param>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="cdTraderPrec"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public abstract DataSet GetUtenze(TransactionManager transactionManager, int start, int pageLength , System.String cdPool, System.String cdMese, System.String cdTraderPrec);
		
		#endregion
		
		#region ConsolidateUsr 
		
		/// <summary>
		///	This method wrap the 'ConsolidateUsr' stored procedure. 
		/// </summary>
		/// <param name="cdMeseAnno"> A <c>System.String</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void ConsolidateUsr(System.String cdMeseAnno)
		{
			 ConsolidateUsr(null, 0, int.MaxValue , cdMeseAnno);
		}
		
		/// <summary>
		///	This method wrap the 'ConsolidateUsr' stored procedure. 
		/// </summary>
		/// <param name="cdMeseAnno"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void ConsolidateUsr(int start, int pageLength, System.String cdMeseAnno)
		{
			 ConsolidateUsr(null, start, pageLength , cdMeseAnno);
		}
				
		/// <summary>
		///	This method wrap the 'ConsolidateUsr' stored procedure. 
		/// </summary>
		/// <param name="cdMeseAnno"> A <c>System.String</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void ConsolidateUsr(TransactionManager transactionManager, System.String cdMeseAnno)
		{
			 ConsolidateUsr(transactionManager, 0, int.MaxValue , cdMeseAnno);
		}
		
		/// <summary>
		///	This method wrap the 'ConsolidateUsr' stored procedure. 
		/// </summary>
		/// <param name="cdMeseAnno"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void ConsolidateUsr(TransactionManager transactionManager, int start, int pageLength , System.String cdMeseAnno);
		
		#endregion
		
		#region UpdateUtenzeState 
		
		/// <summary>
		///	This method wrap the 'UpdateUtenzeState' stored procedure. 
		/// </summary>
		/// <param name="idTraderPrecedente"> A <c>System.Int32?</c> instance.</param>
		/// <param name="newIdStato"> A <c>System.Int32?</c> instance.</param>
		/// <param name="nota"> A <c>System.String</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void UpdateUtenzeState(System.Int32? idTraderPrecedente, System.Int32? newIdStato, System.String nota)
		{
			 UpdateUtenzeState(null, 0, int.MaxValue , idTraderPrecedente, newIdStato, nota);
		}
		
		/// <summary>
		///	This method wrap the 'UpdateUtenzeState' stored procedure. 
		/// </summary>
		/// <param name="idTraderPrecedente"> A <c>System.Int32?</c> instance.</param>
		/// <param name="newIdStato"> A <c>System.Int32?</c> instance.</param>
		/// <param name="nota"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void UpdateUtenzeState(int start, int pageLength, System.Int32? idTraderPrecedente, System.Int32? newIdStato, System.String nota)
		{
			 UpdateUtenzeState(null, start, pageLength , idTraderPrecedente, newIdStato, nota);
		}
				
		/// <summary>
		///	This method wrap the 'UpdateUtenzeState' stored procedure. 
		/// </summary>
		/// <param name="idTraderPrecedente"> A <c>System.Int32?</c> instance.</param>
		/// <param name="newIdStato"> A <c>System.Int32?</c> instance.</param>
		/// <param name="nota"> A <c>System.String</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void UpdateUtenzeState(TransactionManager transactionManager, System.Int32? idTraderPrecedente, System.Int32? newIdStato, System.String nota)
		{
			 UpdateUtenzeState(transactionManager, 0, int.MaxValue , idTraderPrecedente, newIdStato, nota);
		}
		
		/// <summary>
		///	This method wrap the 'UpdateUtenzeState' stored procedure. 
		/// </summary>
		/// <param name="idTraderPrecedente"> A <c>System.Int32?</c> instance.</param>
		/// <param name="newIdStato"> A <c>System.Int32?</c> instance.</param>
		/// <param name="nota"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void UpdateUtenzeState(TransactionManager transactionManager, int start, int pageLength , System.Int32? idTraderPrecedente, System.Int32? newIdStato, System.String nota);
		
		#endregion
		
		#region GetUtenzeAll 
		
		/// <summary>
		///	This method wrap the 'GetUtenzeAll' stored procedure. 
		/// </summary>
		/// <param name="cdPool"> A <c>System.String</c> instance.</param>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="cdTraderPrec"> A <c>System.String</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public DataSet GetUtenzeAll(System.String cdPool, System.String cdMese, System.String cdTraderPrec)
		{
			return GetUtenzeAll(null, 0, int.MaxValue , cdPool, cdMese, cdTraderPrec);
		}
		
		/// <summary>
		///	This method wrap the 'GetUtenzeAll' stored procedure. 
		/// </summary>
		/// <param name="cdPool"> A <c>System.String</c> instance.</param>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="cdTraderPrec"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public DataSet GetUtenzeAll(int start, int pageLength, System.String cdPool, System.String cdMese, System.String cdTraderPrec)
		{
			return GetUtenzeAll(null, start, pageLength , cdPool, cdMese, cdTraderPrec);
		}
				
		/// <summary>
		///	This method wrap the 'GetUtenzeAll' stored procedure. 
		/// </summary>
		/// <param name="cdPool"> A <c>System.String</c> instance.</param>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="cdTraderPrec"> A <c>System.String</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public DataSet GetUtenzeAll(TransactionManager transactionManager, System.String cdPool, System.String cdMese, System.String cdTraderPrec)
		{
			return GetUtenzeAll(transactionManager, 0, int.MaxValue , cdPool, cdMese, cdTraderPrec);
		}
		
		/// <summary>
		///	This method wrap the 'GetUtenzeAll' stored procedure. 
		/// </summary>
		/// <param name="cdPool"> A <c>System.String</c> instance.</param>
		/// <param name="cdMese"> A <c>System.String</c> instance.</param>
		/// <param name="cdTraderPrec"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public abstract DataSet GetUtenzeAll(TransactionManager transactionManager, int start, int pageLength , System.String cdPool, System.String cdMese, System.String cdTraderPrec);
		
		#endregion
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a TList&lt;SshTipologiaSocieta&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="TList&lt;SshTipologiaSocieta&gt;"/></returns>
		public static TList<SshTipologiaSocieta> Fill(IDataReader reader, TList<SshTipologiaSocieta> rows, int start, int pageLength)
		{
			NetTiersProvider currentProvider = DataRepository.Provider;
            bool useEntityFactory = currentProvider.UseEntityFactory;
            bool enableEntityTracking = currentProvider.EnableEntityTracking;
            LoadPolicy currentLoadPolicy = currentProvider.CurrentLoadPolicy;
			
			// advance to the starting row
			for (int i = 0; i < start; i++)
			{
				if (!reader.Read())
				return rows; // not enough rows, just return
			}
			for (int i = 0; i < pageLength; i++)
			{
				if (!reader.Read())
					break; // we are done
					
				string key = null;
				
				NiSis.Entities.SshTipologiaSocieta c = null;
				if (useEntityFactory)
				{
					key = new System.Text.StringBuilder("SshTipologiaSocieta")
					.Append("|").Append((reader.IsDBNull(((int)NiSis.Entities.SshTipologiaSocietaColumn.IdTipologiaSocieta - 1))?(int)0:(System.Int32)reader[((int)NiSis.Entities.SshTipologiaSocietaColumn.IdTipologiaSocieta - 1)]).ToString()).ToString();
					c = EntityManager.LocateOrCreate<SshTipologiaSocieta>(
					key.ToString(), // EntityTrackingKey
					"SshTipologiaSocieta",  //Creational Type
					currentProvider.EntityCreationalFactoryType,  //Factory used to create entity
					currentProvider.EnableEntityTracking); // Track this entity?
				}
				else
				{
					c = new NiSis.Entities.SshTipologiaSocieta();
				}
				
				if (!enableEntityTracking ||
					c.EntityState == EntityState.Added ||
					(enableEntityTracking &&
						(
							(currentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
							(currentLoadPolicy == LoadPolicy.DiscardChanges && (c.EntityState == EntityState.Unchanged || c.EntityState == EntityState.Changed))
						)
					))
				{
					c.SuppressEntityEvents = true;
					c.IdTipologiaSocieta = (System.Int32)reader[((int)SshTipologiaSocietaColumn.IdTipologiaSocieta - 1)];
					c.OriginalIdTipologiaSocieta = c.IdTipologiaSocieta;
					c.DscTipologiaSocieta = (System.String)reader[((int)SshTipologiaSocietaColumn.DscTipologiaSocieta - 1)];
					c.EntityTrackingKey = key;
					c.AcceptChanges();
					c.SuppressEntityEvents = false;
				}
				rows.Add(c);
			}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="NiSis.Entities.SshTipologiaSocieta"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="NiSis.Entities.SshTipologiaSocieta"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, NiSis.Entities.SshTipologiaSocieta entity)
		{
			if (!reader.Read()) return;
			
			entity.IdTipologiaSocieta = (System.Int32)reader[((int)SshTipologiaSocietaColumn.IdTipologiaSocieta - 1)];
			entity.OriginalIdTipologiaSocieta = (System.Int32)reader["Id_Tipologia_Societa"];
			entity.DscTipologiaSocieta = (System.String)reader[((int)SshTipologiaSocietaColumn.DscTipologiaSocieta - 1)];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="NiSis.Entities.SshTipologiaSocieta"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="NiSis.Entities.SshTipologiaSocieta"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, NiSis.Entities.SshTipologiaSocieta entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.IdTipologiaSocieta = (System.Int32)dataRow["Id_Tipologia_Societa"];
			entity.OriginalIdTipologiaSocieta = (System.Int32)dataRow["Id_Tipologia_Societa"];
			entity.DscTipologiaSocieta = (System.String)dataRow["Dsc_Tipologia_Societa"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="NiSis.Entities.SshTipologiaSocieta"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">NiSis.Entities.SshTipologiaSocieta Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		public override void DeepLoad(TransactionManager transactionManager, NiSis.Entities.SshTipologiaSocieta entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			// Deep load child collections  - Call GetByIdTipologiaSocieta methods when available
			
			#region SshNewRelazioniSocietarieCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<SshNewRelazioniSocietarie>|SshNewRelazioniSocietarieCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'SshNewRelazioniSocietarieCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.SshNewRelazioniSocietarieCollection = DataRepository.SshNewRelazioniSocietarieProvider.GetByIdTipologiaSocieta2(transactionManager, entity.IdTipologiaSocieta);

				if (deep && entity.SshNewRelazioniSocietarieCollection.Count > 0)
				{
					deepHandles.Add("SshNewRelazioniSocietarieCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<SshNewRelazioniSocietarie>) DataRepository.SshNewRelazioniSocietarieProvider.DeepLoad,
						new object[] { transactionManager, entity.SshNewRelazioniSocietarieCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region SshSocietaStoricoChainCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<SshSocietaStoricoChain>|SshSocietaStoricoChainCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'SshSocietaStoricoChainCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.SshSocietaStoricoChainCollection = DataRepository.SshSocietaStoricoChainProvider.GetByIdTipologiaSocieta(transactionManager, entity.IdTipologiaSocieta);

				if (deep && entity.SshSocietaStoricoChainCollection.Count > 0)
				{
					deepHandles.Add("SshSocietaStoricoChainCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<SshSocietaStoricoChain>) DataRepository.SshSocietaStoricoChainProvider.DeepLoad,
						new object[] { transactionManager, entity.SshSocietaStoricoChainCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region SshNewSocietaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<SshNewSocieta>|SshNewSocietaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'SshNewSocietaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.SshNewSocietaCollection = DataRepository.SshNewSocietaProvider.GetByIdTipologiaSocieta(transactionManager, entity.IdTipologiaSocieta);

				if (deep && entity.SshNewSocietaCollection.Count > 0)
				{
					deepHandles.Add("SshNewSocietaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<SshNewSocieta>) DataRepository.SshNewSocietaProvider.DeepLoad,
						new object[] { transactionManager, entity.SshNewSocietaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region SshTraderPrecStoricoCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<SshTraderPrecStorico>|SshTraderPrecStoricoCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'SshTraderPrecStoricoCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.SshTraderPrecStoricoCollection = DataRepository.SshTraderPrecStoricoProvider.GetByIdTipologia(transactionManager, entity.IdTipologiaSocieta);

				if (deep && entity.SshTraderPrecStoricoCollection.Count > 0)
				{
					deepHandles.Add("SshTraderPrecStoricoCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<SshTraderPrecStorico>) DataRepository.SshTraderPrecStoricoProvider.DeepLoad,
						new object[] { transactionManager, entity.SshTraderPrecStoricoCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the NiSis.Entities.SshTipologiaSocieta object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">NiSis.Entities.SshTipologiaSocieta instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">NiSis.Entities.SshTipologiaSocieta Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		public override bool DeepSave(TransactionManager transactionManager, NiSis.Entities.SshTipologiaSocieta entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
	
			#region List<SshNewRelazioniSocietarie>
				if (CanDeepSave(entity.SshNewRelazioniSocietarieCollection, "List<SshNewRelazioniSocietarie>|SshNewRelazioniSocietarieCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(SshNewRelazioniSocietarie child in entity.SshNewRelazioniSocietarieCollection)
					{
						if(child.IdTipologiaSocieta2Source != null)
						{
							child.IdTipologiaSocieta2 = child.IdTipologiaSocieta2Source.IdTipologiaSocieta;
						}
						else
						{
							child.IdTipologiaSocieta2 = entity.IdTipologiaSocieta;
						}

					}

					if (entity.SshNewRelazioniSocietarieCollection.Count > 0 || entity.SshNewRelazioniSocietarieCollection.DeletedItems.Count > 0)
					{
						//DataRepository.SshNewRelazioniSocietarieProvider.Save(transactionManager, entity.SshNewRelazioniSocietarieCollection);
						
						deepHandles.Add("SshNewRelazioniSocietarieCollection",
						new KeyValuePair<Delegate, object>((DeepSaveHandle< SshNewRelazioniSocietarie >) DataRepository.SshNewRelazioniSocietarieProvider.DeepSave,
							new object[] { transactionManager, entity.SshNewRelazioniSocietarieCollection, deepSaveType, childTypes, innerList }
						));
					}
				} 
			#endregion 
				
	
			#region List<SshSocietaStoricoChain>
				if (CanDeepSave(entity.SshSocietaStoricoChainCollection, "List<SshSocietaStoricoChain>|SshSocietaStoricoChainCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(SshSocietaStoricoChain child in entity.SshSocietaStoricoChainCollection)
					{
						if(child.IdTipologiaSocietaSource != null)
						{
							child.IdTipologiaSocieta = child.IdTipologiaSocietaSource.IdTipologiaSocieta;
						}
						else
						{
							child.IdTipologiaSocieta = entity.IdTipologiaSocieta;
						}

					}

					if (entity.SshSocietaStoricoChainCollection.Count > 0 || entity.SshSocietaStoricoChainCollection.DeletedItems.Count > 0)
					{
						//DataRepository.SshSocietaStoricoChainProvider.Save(transactionManager, entity.SshSocietaStoricoChainCollection);
						
						deepHandles.Add("SshSocietaStoricoChainCollection",
						new KeyValuePair<Delegate, object>((DeepSaveHandle< SshSocietaStoricoChain >) DataRepository.SshSocietaStoricoChainProvider.DeepSave,
							new object[] { transactionManager, entity.SshSocietaStoricoChainCollection, deepSaveType, childTypes, innerList }
						));
					}
				} 
			#endregion 
				
	
			#region List<SshNewSocieta>
				if (CanDeepSave(entity.SshNewSocietaCollection, "List<SshNewSocieta>|SshNewSocietaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(SshNewSocieta child in entity.SshNewSocietaCollection)
					{
						if(child.IdTipologiaSocietaSource != null)
						{
							child.IdTipologiaSocieta = child.IdTipologiaSocietaSource.IdTipologiaSocieta;
						}
						else
						{
							child.IdTipologiaSocieta = entity.IdTipologiaSocieta;
						}

					}

					if (entity.SshNewSocietaCollection.Count > 0 || entity.SshNewSocietaCollection.DeletedItems.Count > 0)
					{
						//DataRepository.SshNewSocietaProvider.Save(transactionManager, entity.SshNewSocietaCollection);
						
						deepHandles.Add("SshNewSocietaCollection",
						new KeyValuePair<Delegate, object>((DeepSaveHandle< SshNewSocieta >) DataRepository.SshNewSocietaProvider.DeepSave,
							new object[] { transactionManager, entity.SshNewSocietaCollection, deepSaveType, childTypes, innerList }
						));
					}
				} 
			#endregion 
				
	
			#region List<SshTraderPrecStorico>
				if (CanDeepSave(entity.SshTraderPrecStoricoCollection, "List<SshTraderPrecStorico>|SshTraderPrecStoricoCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(SshTraderPrecStorico child in entity.SshTraderPrecStoricoCollection)
					{
						if(child.IdTipologiaSource != null)
						{
							child.IdTipologia = child.IdTipologiaSource.IdTipologiaSocieta;
						}
						else
						{
							child.IdTipologia = entity.IdTipologiaSocieta;
						}

					}

					if (entity.SshTraderPrecStoricoCollection.Count > 0 || entity.SshTraderPrecStoricoCollection.DeletedItems.Count > 0)
					{
						//DataRepository.SshTraderPrecStoricoProvider.Save(transactionManager, entity.SshTraderPrecStoricoCollection);
						
						deepHandles.Add("SshTraderPrecStoricoCollection",
						new KeyValuePair<Delegate, object>((DeepSaveHandle< SshTraderPrecStorico >) DataRepository.SshTraderPrecStoricoProvider.DeepSave,
							new object[] { transactionManager, entity.SshTraderPrecStoricoCollection, deepSaveType, childTypes, innerList }
						));
					}
				} 
			#endregion 
				
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region SshTipologiaSocietaChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>NiSis.Entities.SshTipologiaSocieta</c>
	///</summary>
	public enum SshTipologiaSocietaChildEntityTypes
	{

		///<summary>
		/// Collection of <c>SshTipologiaSocieta</c> as OneToMany for SshNewRelazioniSocietarieCollection
		///</summary>
		[ChildEntityType(typeof(TList<SshNewRelazioniSocietarie>))]
		SshNewRelazioniSocietarieCollection,

		///<summary>
		/// Collection of <c>SshTipologiaSocieta</c> as OneToMany for SshSocietaStoricoChainCollection
		///</summary>
		[ChildEntityType(typeof(TList<SshSocietaStoricoChain>))]
		SshSocietaStoricoChainCollection,

		///<summary>
		/// Collection of <c>SshTipologiaSocieta</c> as OneToMany for SshNewSocietaCollection
		///</summary>
		[ChildEntityType(typeof(TList<SshNewSocieta>))]
		SshNewSocietaCollection,

		///<summary>
		/// Collection of <c>SshTipologiaSocieta</c> as OneToMany for SshTraderPrecStoricoCollection
		///</summary>
		[ChildEntityType(typeof(TList<SshTraderPrecStorico>))]
		SshTraderPrecStoricoCollection,
	}
	
	#endregion SshTipologiaSocietaChildEntityTypes
	
	#region SshTipologiaSocietaFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;SshTipologiaSocietaColumn&gt;"/> class
	/// that is used exclusively with a <see cref="SshTipologiaSocieta"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class SshTipologiaSocietaFilterBuilder : SqlFilterBuilder<SshTipologiaSocietaColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the SshTipologiaSocietaFilterBuilder class.
		/// </summary>
		public SshTipologiaSocietaFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the SshTipologiaSocietaFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public SshTipologiaSocietaFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the SshTipologiaSocietaFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public SshTipologiaSocietaFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion SshTipologiaSocietaFilterBuilder
	
	#region SshTipologiaSocietaParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;SshTipologiaSocietaColumn&gt;"/> class
	/// that is used exclusively with a <see cref="SshTipologiaSocieta"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class SshTipologiaSocietaParameterBuilder : ParameterizedSqlFilterBuilder<SshTipologiaSocietaColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the SshTipologiaSocietaParameterBuilder class.
		/// </summary>
		public SshTipologiaSocietaParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the SshTipologiaSocietaParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public SshTipologiaSocietaParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the SshTipologiaSocietaParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public SshTipologiaSocietaParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion SshTipologiaSocietaParameterBuilder
	
	#region SshTipologiaSocietaSortBuilder
    
    /// <summary>
    /// A strongly-typed instance of the <see cref="SqlSortBuilder&lt;SshTipologiaSocietaColumn&gt;"/> class
	/// that is used exclusively with a <see cref="SshTipologiaSocieta"/> object.
    /// </summary>
    [CLSCompliant(true)]
    public class SshTipologiaSocietaSortBuilder : SqlSortBuilder<SshTipologiaSocietaColumn>
    {
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the SshTipologiaSocietaSqlSortBuilder class.
		/// </summary>
		public SshTipologiaSocietaSortBuilder() : base() { }

		#endregion Constructors

    }    
    #endregion SshTipologiaSocietaSortBuilder
	
} // end namespace
